<template>
	<view class="content">
		<view class="header">
			<view class="box">
				<text class="iconfont icon-left" @click="go()"></text>
				<text class="title">约见申请</text>
			</view>
		</view>
		<view class="bosx">
			<text class="title">约见申请</text>
			<view class="item">
				<text>预约时间</text>
				<input type="text" value="" placeholder="请填写正确的年/月/日/时" placeholder-class="s" />
			</view>
			<view class="item">
				<text>姓名</text>
				<input type="text" value="" placeholder="请填写真实姓名" placeholder-class="s" />
			</view>
			<view class="item">
				<text>联系方式</text>
				<input type="text" value="" placeholder="请填写正确的手机号" placeholder-class="s" />
			</view>
			<view class="item">
				<text>区域</text>
				<input type="text" value="" placeholder="请填写正确所在城市" placeholder-class="s" />
			</view>
			<view class="item">
				<text>案件类型</text>
				<view class="fr">
					<picker @change="bindPickerChange" :value="index" :range="array">
						<view class="uni-input">{{array[index]}}</view>
					</picker>
				</view>
			</view>
		</view>
		<view class="button">提交</view>
	</view>
</template>

<script>
	export default {
		data() {
			return {
				array: ['金融理财', '金融理财', '金融理财', '金融理财'],
				index: 0,
			}
		},
		onLoad() {

		},
		methods: {
			bindPickerChange: function(e) {
				console.log('picker发送选择改变，携带值为', e.target.value)
				this.index = e.target.value
			},
			go() {
				uni.navigateBack({
					delta: 1
				})
			}
		}
	}
</script>

<style lang="scss">
	view,
	text,
	input,
	textarea {
		box-sizing: border-box;
	}

	page {
		background: #fff;
	}

	uni-picker {
		width: 100%;
		height: 100%;
		display: flex;
		align-items: center;

		.uni-input {
			font-size: 24rpx;
		}
	}

	.footer {
		overflow: hidden;
		width: 666rpx;
		height: 100rpx;
		background: #F8F8F8;
		border-radius: 20rpx;
		position: fixed;
		left: 50%;
		display: flex;
		align-items: center;
		margin-left: -333rpx;
		bottom: 25rpx;

		view {
			width: 25%;
			float: left;

			&.on text {
				color: #DBAC53;
			}

			image {
				width: 50rpx;
				margin: 0 auto;
				display: block;
				margin-bottom: 6rpx;
			}

			text {
				font-size: 20rpx;
				color: #333;
				display: block;
				text-align: center;
			}
		}
	}

	.bosx {
		overflow: hidden;
		width: 666rpx;
		margin: 0 auto;
		margin-top: 125rpx;
		box-shadow: 3px 3px 21px 0px rgba(45, 45, 45, 0.2);
		border-radius: 9px;
		position: relative;
		padding: 40rpx;
		height: 810rpx;

		.xy {
			overflow: hidden;
			display: flex;
			align-items: center;
			justify-content: center;
			width: 100%;
			position: absolute;
			left: 0;
			bottom: 42rpx;

			view {
				width: 20rpx;
				height: 20rpx;
				border-radius: 3rpx;
				display: flex;
				align-items: center;
				justify-content: center;
				margin-right: 10rpx;

				image {
					width: 100%;
					height: 100%;
					display: block;
				}
			}

			text {
				font-size: 20rpx;
				color: #CDCDCD;
			}
		}

		.title {
			display: block;
			text-align: center;
			font-size: 30rpx;
			color: #2D2D2D;
			font-weight: bold;
			margin-bottom: 90rpx;
		}

		.item {
			overflow: hidden;
			width: 100%;
			display: flex;
			margin-bottom: 40rpx;
			align-items: center;
			justify-content: space-between;

			text {
				font-size: 26rpx;
				color: #2D2D2D;
				width: 130rpx;
				font-weight: bold;
			}

			input {
				width: 430rpx;
				border-radius: 6rpx;
				padding-left: 15rpx;
				font-size: 24rpx;
				color: #000;
				height: 70rpx;
				border: 1px solid #D8D8D8;
				outline: none;
			}

			.fr {
				width: 430rpx;
				border-radius: 6rpx;
				padding-left: 15rpx;
				font-size: 20rpx;
				color: #000;
				height: 70rpx;
				border: 1px solid #D8D8D8;
				outline: none;
			}

			.s {
				color: #CDCDCD;
			}
		}
	}

	.button {
		width: 650rpx;
		height: 70rpx;
		background: #153B33;
		font-size: 28rpx;
		color: #fff;
		text-align: center;
		line-height: 70rpx;
		margin-top: 70rpx;
		border-radius: 6rpx;
		position: fixed;
		left: 50%;
		margin-left: -325rpx;
		bottom: 50rpx;
	}

	.content {
		overflow: hidden;
		width: 100%;
		position: relative;
		height: 100vh;

		.header {
			overflow: hidden;
			width: 100%;
			background-image: url(../../static/fawu_06.jpg);
			background-size: 100% 33rpx;
			background-repeat: no-repeat;
			background-position: bottom center;
			height: 155rpx;
			background-color: #153B33;
			position: relative;
			padding: 60rpx 0 0 0;

			.box {
				overflow: hidden;
				width: 100%;
				display: flex;
				position: relative;
				align-items: center;
				justify-content: center;

				.title {
					font-size: 28rpx;
					color: #DBAC53;
				}

				.icon-shezhi {
					position: absolute;
					right: 17rpx;
					top: 50%;
					font-size: 30rpx;
					transform: translateY(-50%);
				}

				.icon-left {
					color: #DBAC53;
					position: absolute;
					left: 17rpx;
					font-size: 35rpx;
					top: 50%;
					transform: translateY(-50%);
				}
			}
		}
	}
</style>
